import request from '@/utils/request'

//获取分类列表-下拉框
export function getCateDownList(query) {
  return request({
    url:'/com.mmk.groupservice.api.AdminGroupCategoryProvider/1.0.0/getCategoryDownList.html',
    method:'post',
    data:query
  })
}

//获取分类列表
export function getCateList(query) {
  return request({
    url:'/com.mmk.groupservice.api.AdminGroupCategoryProvider/1.0.0/getCategoryList.html',
    method:'post',
    data:query
  })
}

//添加分类
export function addCate(query) {
  return request({
    url:'/com.mmk.groupservice.api.AdminGroupCategoryProvider/1.0.0/insertCategory.html',
    method:'post',
    data:query
  })
}

//删除分类
export function deleteCate(query) {
  return request({
    url:'/com.mmk.groupservice.api.AdminGroupCategoryProvider/1.0.0/deleteCategoryById.html',
    method:'post',
    data:query
  })
}

//编辑分类
export function updateCate(query) {
  return request({
    url:'/com.mmk.groupservice.api.AdminGroupCategoryProvider/1.0.0/updateCategory.html',
    method:'post',
    data:query
  })
}
